import React from 'react'

export default roleArr => WrapComponent => {
  return () => {
    return (
      roleArr.includes('admin') ?
      <WrapComponent name={"zs"} age={18} flag={true} />
      :<div>无权限</div>
    )
  }
}